package com.kologe.transandroid.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;


import androidx.annotation.Nullable;

import com.kologe.transandroid.network.NTcpListener;

public class TcpListenService extends Service {

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        Log.d("NTcpListener", "onStartCommand: start NTcpListener");

        new Thread( new NTcpListener(13531)).start();
        return super.onStartCommand(intent, flags, startId);
    }

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }
}
